package cn.ssh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.ssh.dao.CommonDao;
import cn.ssh.entity.SaleOrderLine;
import cn.ssh.entity.SaleProduct;
import cn.ssh.service.SaleProductService;

@Service("saleProductService")
public class SaleProductServiceImpl implements SaleProductService {
	@Autowired
	@Qualifier("commonDao")
	private CommonDao commonDao = null;

	public CommonDao getCommonDao() {
		return commonDao;
	}

	public void setCommonDao(CommonDao commonDao) {
		this.commonDao = commonDao;
	}
	
	@Override
	public List findAll() {
		// TODO Auto-generated method stub
		return commonDao.search("from SaleProduct");
	}

}
